<template>
  <div>{{ obj.name }}</div>
  <div>{{ obj.age }}</div>
  <button @click="obj.name = '1s'">改值</button>
</template>

<script>
import { reactive } from "vue";
export default {
  setup() {
    const obj = reactive({
      name: "zs",
      age: 18,
    });
    return {
      obj,
    };
  },
};
</script>
